package org.crud4j.wicket.markup.html.viewer;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.crud4j.core.CrudField;

class DefaultViewerPanel extends Panel {

	public DefaultViewerPanel(String id, IModel model) {
		super(id);
		CrudField field = (CrudField) model.getObject();
		this.add(new Label("text", field.getValue()));
	}

}
